<template>
  <div class="box">
    <ul>
      <router-link tag="li" active-class="active" to="/films/nowplaying">
        <i class="iconfont icon-dianying"></i>
        <p>电影</p>
      </router-link>
      <router-link tag="li" active-class="active" to="/cinemas">
        <i class="iconfont icon-yingyuan"></i>
        <p>影院</p>
      </router-link>
      <router-link tag="li" active-class="active" to="/news">
        <i class="iconfont icon-zixun"></i>
        <p>资讯</p>
      </router-link>
      <router-link tag="li" active-class="active" to="/center">
        <i class="iconfont icon-gerenzhongxin"></i>
        <p>个人</p>
      </router-link>
    </ul>
  </div>
</template>

<script>
import '@/style/iconfont.css'
export default {}
</script>

<style lang="scss" scoped>
.box {
  position: fixed;
  bottom: 0;
  left: 0;
  /* 移动站点中1像素问题 */
  /* border-top: 1px solid #ccc; */
  height: 50px;
  text-align: center;
  background: #fff;
  color: #7a7e83;
  width: 100%;
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* 解决1px问题 */
    width: 200%;
    height: 100%;
    border-top: 1px solid #ccc;
    transform: scale(0.5);
    transform-origin: 0 0;
  }

  ul {
    display: flex;
    align-items: center;
    li {
      margin-top: 5px;
      flex: 1;
      height: 43px;
      &.active {
        color: #fe5100;
      }
      p {
        margin-top: 2px;
        font-size: 14px;
      }
      i {
        font-size: 14px;
      }
    }
  }
}
</style>